<template>
  <div class="hello">
    <h1>{{ title || '我是默认值'}}</h1>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
 props:['title'],
  data(){
    return{
      msg:''
    }
  },
  methods:{
    init(){
    
    }
  },
  mounted(){
    this.init();
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
